package cn.kimming.wms.domain;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.alibaba.fastjson.JSON;

import lombok.Getter;
import lombok.Setter;

public class Role extends BaseDomain{
	@Getter @Setter
	private String name;	//角色名称
	@Getter @Setter
	private String sn;		//角色编码
	
	@Getter @Setter
	List<Permission> permissions = new ArrayList<>();	//权限列表, many2many, role_permission
	@Getter @Setter
	List<SystemMenu> menus = new ArrayList<>();	//菜单列表, many2many, role_systemmenu
	
	@Override
	public String toString() {
		return name;
	}		
	
}
